﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace robotGUI
{
    public partial class frmVerifyFail : Form
    {
        public class VerifyFailEntry
        {
            public int Address;
            public int Expected;
            public int Found;
            public VerifyFailEntry(int address, int expected, int found)
            {
                Address = address;
                Expected = expected;
                Found = found;
            }
        }

        public frmVerifyFail()
        {
            InitializeComponent();
        }

        public void Fill(List<VerifyFailEntry> failures){
            listView1.Items.Clear();
            foreach (VerifyFailEntry entry in failures)
                listView1.Items.Add(new ListViewItem(new string[] { "0x" + entry.Address.ToString("X2"), "0x" + entry.Expected.ToString("X2"), "0X" + entry.Found.ToString("X2") }, 0));
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
